package cn.zhukelili.base;

import java.util.HashMap;

/**
 * @description: 变量解析器
 * @author: hhbeast
 * @since: 2018/7/28 10:05
 */
public class VarExpression extends Expression {
    private String key;

    public VarExpression(String _key) {
        this.key = _key;
    }

    //从map中取之
    public int interpreter(HashMap<String, Integer> var) {
        return var.get(this.key);
    }
}
